﻿<ContentControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:Behavior_Behaviors="clr-namespace:Behavior.Behaviors;assembly=Behavior"
	mc:Ignorable="d"
	x:Class="SilverlightMenu.SkybotWindow"
	 x:Name="ContentControl"
	 
	>
	<ContentControl.Resources>
		<SolidColorBrush x:Key="ContentBorderColor" Color="#FF99BBE8"/>
		<LinearGradientBrush x:Key="窗口标题栏填充色" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFEBF2F9" Offset="0.039"/>
			<GradientStop Color="#FFC9DCF2" Offset="1"/>
			<GradientStop Color="#FFAFC9EC" Offset="0.485"/>
			<GradientStop Color="#FFCEDEF3" Offset="0.433"/>
			<GradientStop Color="#FFDAE7F6" Offset="0.099"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="标题文字颜色" Color="#FF1F478B"/>
		<Style x:Key="ContentControlStyle" TargetType="ContentControl">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="ContentControl">
				<Border  Cursor="{TemplateBinding Cursor}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" BorderBrush="#FF7F97B7" BorderThickness="1"     CornerRadius="2" Background="#FFC7D4E4">
					<Grid x:Name="Window" >
				<Border BorderBrush="{StaticResource ContentBorderColor}" BorderThickness="1" Margin="5,23,7,6" Background="#FFCCD9E8">
					<Border BorderBrush="{StaticResource ContentBorderColor}" BorderThickness="1" Margin="4">
						
							<ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" />
							
					</Border>
				</Border>
				<Rectangle Height="23" VerticalAlignment="Top" Fill="{StaticResource 窗口标题栏填充色}" StrokeThickness="0" RadiusY="2"/>
				<TextBlock x:Name="title" HorizontalAlignment="Left" TextWrapping="Wrap" Text="窗口名称" VerticalAlignment="Top" Foreground="{StaticResource 标题文字颜色}" FontWeight="Bold" Margin="8,3,0,0"/>
				<Border x:Name="ColseIcon" BorderBrush="#FF9BBCE7" BorderThickness="1" HorizontalAlignment="Right" Height="15" VerticalAlignment="Top" Width="15" Margin="0,4,6,0" CornerRadius="3" Cursor="Hand" ToolTipService.ToolTip="关闭窗口">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFD9ECFF" Offset="1"/>
							<GradientStop Color="White" Offset="0.146"/>
							<GradientStop Color="#FFC3D8F4" Offset="0.627"/>
						</LinearGradientBrush>
					</Border.Background>
					<Grid Cursor="Hand" ToolTipService.ToolTip="关闭窗口">
						<Path Data="M3.3333333,3 L10.291829,9.9584961" Fill="#FFF4F4F5" Margin="2.833,2.5,2.209,2.542" Stretch="Fill" Stroke="#FF3D589F" UseLayoutRounding="False"/>
						<Path Data="M3.3333333,3 L10.291829,9.9584961" Fill="#FFF4F4F5" Margin="2.417,2.5,2.625,2.542" Stretch="Fill" Stroke="#FF3D589F" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5">
							<Path.RenderTransform>
								<TransformGroup>
									<ScaleTransform/>
									<SkewTransform/>
									<RotateTransform Angle="-90"/>
									<TranslateTransform/>
								</TransformGroup>
							</Path.RenderTransform>
						</Path>
					</Grid>
				</Border>
			</Grid>
		</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</ContentControl.Resources>
	<ContentControl.Style>
		<StaticResource ResourceKey="ContentControlStyle"/>
	</ContentControl.Style>

	</ContentControl>